public class h_22 {
    public static void main(String[] args) {
        System.out.println(diGui(5));
    }
    public static int diGui(int fn){
        if(fn==1){
            return 1;
        }else {
            return fn*diGui(fn-1);
        }
    }

}
